
<html>
<head>
<meta charset="UTF-8">
<title>数据表模型字段详情</title>
<link href="../../static/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
<link href="../../static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
<link href="../../static/css/esaas-easyui-view.css" rel="stylesheet" type="text/css"/>
<script src="../../static/easyui/jquery.min.js" type="text/javascript"></script>
<script src="../../static/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
<script src="../../ffres/dict/all.js"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<body class="easyui-layout" scroll="no">
 	<div data-options="region:'center',split:false,collapsible:false" title="字段属性" style="width:35%;">
 		<form id="ff" method="post">	   
	    	<table width="100%" cellspacing="1" cellpadding="5" border="0">
	    		<tr>
	    			<td width="25%" align="right">字段名称：</td>
	    			<td width="75%"><input class="easyui-textbox" type="text" name="fieldName" id="fieldName" disabled style="width:230px;height:25px;"/></td>    			
	    		</tr>
	    		<tr>
	    			<td width="25%" align="right">字段代码：</td>
	    			<td width="75%">
	    				<input class="easyui-textbox" type="text" name="fieldCode" id="fieldCode" disabled data-options="required:true" style="width:230px;height:25px;"/>
	    				<input type="hidden" name="fieldId"/>
	    			</td>	
	    		</tr>
	    		<tr>
	    			<td width="25%" align="right">&nbsp;</td>
	    			<td width="80%"><input type="checkbox" name="isPk" data-options="required:true" disabled>主键</input>
	    			&nbsp;&nbsp;
	    			<input type="checkbox" name="isAllowNull" data-options="required:true" disabled>允许为空</input></td>		
	    		</tr>
	    		<tr>
	    			<td width="25%" align="right">字段备注：</td>
	    			<td width="75%"><input class="easyui-textbox" name="fieldDesc" id="fieldDesc" disabled value="服务组件代码" data-options="multiline:true" style="height:60px;width:230px"/></td>    			
	    		</tr>    			    			    		
	    	</table>
	    </form>
	</div>
	<div data-options="region:'east',split:false,collapsible:false" title="引用的数据条目" style="width:65%;">
		<form id="fi" method="post">	
	    	<table width="100%" cellspacing="1" cellpadding="5" border="0">
	    		<tr>
	    			<td width="15%" align="right">条目代码：</td>
	    			<td width="35%"><input class="easyui-textbox" type="text" disabled name="itemCode" style="height:25px;"></input></td>
	    			<td width="15%" align="right">条目名称：</td>
	    			<td width="35%">
	    				<input class="easyui-textbox" type="text" disabled name="itemName" style="height:25px;"></input>
	    			</td>	    			
	    		</tr>
	    		<tr>
	    			<td width="15%" align="right" valign="top">条目描述：</td>
	    			<td colspan="3" width="85%"><input class="easyui-textbox" disabled name="itemRemarks" data-options="multiline:true" style="height:80px;width:82%"></td>
	    		</tr>
	    		<tr>
	    			<td width="15%" align="right">数据类型：</td>
	    			<td colspan="3" width="85%"><select class="easyui-combobox" disabled id="itemDataType" name="itemDataType" style="width:82%;height:25px;" data-options="editable:false,valueField:'enname',textField:'cnname',data:PUB_DATA_TYPE"></select></td>
	    		</tr>  		
	    		<tr>
	    			<td width="15%" align="right">数据长度：</td>
	    			<td><input class="easyui-textbox" type="text" disabled id="itemDataLength" name="itemDataLength" style="height:25px;"></input></td>
	    			<td width="15%" align="right">数据精度：</td>
	    			<td><input class="easyui-textbox" type="text" disabled id="itemDataPrecision" name="itemDataPrecision" style="height:25px;"></input></td>	    			
	    		</tr>
	    		<tr>
	    			<td width="15%" align="right">数据选项：</td>
	    			<td colspan="3" width="85%"><input class="easyui-textbox" disabled id="dictCode" name="dictCode" style="width:82;height:25px;"></td>
	    		</tr>	    			    			    		
	    		<tr>
	    			<td width="15%" align="right">拥有者：</td>
	    			<td><input class="easyui-textbox" type="text" id="createUser" name="createUser" disabled data-options="required:true" style="height:25px;"></input></td>	    		
	    			<td width="15%" align="right">创建时间：</td>
	    			<td><input class="easyui-textbox" type="text" id="createTime" name="createTime" disabled data-options="required:true" style="height:25px;"></input></td>	    			
	    		</tr>
	    	</table>
	    </form>
	</div>
	<div data-options="region:'south',split:false" style="height:50px;text-align:center;padding:10px">
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="closeForm()">&nbsp;关&nbsp;闭&nbsp;</a>
	    	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	</div>
	<script>		
		$(function() {
			var fieldId = $.getUrlParam('fieldId');
			$.restfulGet('../../api/model/table/field/' + fieldId,null,function(data){
					$('#ff').form('load', {
						fieldId : data.rows.fieldId,
						fieldCode : data.rows.fieldCode,
						fieldName : data.rows.fieldName,
						fieldDesc : data.rows.fieldDesc,
						isPk : data.rows.isPk,
						isAllowNull : data.rows.isAllowNull
					});					
			});
			var itemId = $.getUrlParam('itemId');
			$.restfulGet('../../api/dict/item/info/' + itemId,null,function(data){
					$('#fi').form('load', {
						itemId : data.rows.itemId,
						itemCode : data.rows.itemCode,
						itemName : data.rows.itemName,
						itemDataType : data.rows.itemDataType,
						itemDataLength : data.rows.itemDataLength,
						itemDataPrecision : data.rows.itemDataPrecision,
						orderValue : data.rows.orderValue,
						refCount : data.rows.refCount,
						dictCode : data.rows.dictCode,
						subjectId : data.rows.subjectId,
						itemRemarks : data.rows.itemRemarks,
						createUser : data.rows.createUser,
						createTime : data.rows.createTime,
						lastModifyUser : data.rows.lastModifyUser,
						lastModifyTime : data.rows.lastModifyTime
					});					
			});			
		});
		
		function closeForm(){
			window.parent.JLEUtil.closewin();
		}
	</script>
</body>
</html>
